﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QuickStart_Project_01.Base
{
    public class IocHelper
    {
        private static IServiceProvider _sp;

        public static void SetContainer(IServiceProvider sp)
        {
            _sp = sp;
        }

        public static T GetService<T>(Type type)
        {
            return (T)_sp.GetService(type);
        }
    }
}
